#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <string.h>
#include <unistd.h>
#include <sys/stat.h>
#include <fcntl.h>
int main()
{
    umask(0);
    int fd = open("bite.txt",O_WRONLY|O_CREAT|O_TRUNC,0666);
    if(fd<0)
    {
        perror("open");
        return 1;
    }
    const char *message="I like Linux!!!";
    write(fd,message,strlen(message));
    close(fd);
    return 0;
}
